<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="TimeStringParser_en,org.as3lib.kitchensync.utils.TimeStringParser_en,DAYS_SEARCH,DAYS_VALUE,FRAMES_SEARCH,HOURS_SEARCH,HOURS_VALUE,LETTER_SEARCH,MILLISECONDS_SEARCH,MILLISECONDS_VALUE,MINUTES_SEARCH,MINUTES_VALUE,NUMBER_SEARCH,NUMBER_UNIT_PAIR_SEARCH,SECONDS_SEARCH,SECONDS_VALUE,TIMECODE_DIGIT_SEARCH,TIMECODE_FORMAT_SEARCH,TIMECODE_FRAME_SEARCH,TIMECODE_SEGMENT_SEARCH,parseTimeString" name="keywords">
<title>org.as3lib.kitchensync.utils.TimeStringParser_en</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'TimeStringParser_en - KitchenSync';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/as3lib/kitchensync/utils/TimeStringParser_en.html&amp;org/as3lib/kitchensync/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;TimeStringParser_en</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class TimeStringParser_en"); titleBar_setSubNav(true,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.as3lib.kitchensync.utils</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class TimeStringParser_en</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td><a href="ITimeStringParser.html">ITimeStringParser</a></td>
</tr>
</table>
<p></p>
  Parses a time string into milliseconds.
  <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#TimeStringParser_en()">TimeStringParser_en</a>()</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#parseTimeString()">parseTimeString</a>(timeString:String):int</div>
<div class="summaryTableDescription">
   Parses a string into milliseconds.</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_VALUE">DAYS_VALUE</a> : Number = 86400000<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#HOURS_VALUE">HOURS_VALUE</a> : Number = 3600000<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#MILLISECONDS_VALUE">MILLISECONDS_VALUE</a> : Number = 1<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#MINUTES_VALUE">MINUTES_VALUE</a> : Number = 60000<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#SECONDS_VALUE">SECONDS_VALUE</a> : Number = 1000<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
</table>
</div>
<a name="protectedConstantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Constants</div>
<table id="summaryTableProtectedConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_SEARCH">DAYS_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#FRAMES_SEARCH">FRAMES_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#HOURS_SEARCH">HOURS_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LETTER_SEARCH">LETTER_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#MILLISECONDS_SEARCH">MILLISECONDS_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#MINUTES_SEARCH">MINUTES_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#NUMBER_SEARCH">NUMBER_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#NUMBER_UNIT_PAIR_SEARCH">NUMBER_UNIT_PAIR_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#SECONDS_SEARCH">SECONDS_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TIMECODE_DIGIT_SEARCH">TIMECODE_DIGIT_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TIMECODE_FORMAT_SEARCH">TIMECODE_FORMAT_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TIMECODE_FRAME_SEARCH">TIMECODE_FRAME_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TIMECODE_SEGMENT_SEARCH">TIMECODE_SEGMENT_SEARCH</a> : RegExp<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">TimeStringParser_en</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="TimeStringParser_en()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TimeStringParser_en</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function TimeStringParser_en()</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="parseTimeString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">parseTimeString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function parseTimeString(timeString:String):int</code><p>
   Parses a string into milliseconds.
   Times can use multiple units. Each unit should be separated by a comma or a space.
   Units will only be detected if they are placed after the time value. 
   All times will be returned in milliseconds.
   If no time unit is specified, the result will use null for the time unit and
   the synchronized action will use its default.
   These are all valid options:
   "1 hour, 2 minutes, 3 seconds, 4 milliseconds"
   "1h2m3s4ms"
   "5sec,12fr"
   "01:23:45;15" (1h, 23m, 45s, 15f - frames are based on stage's framerate)
   ":03" (3s)
   "300 frames"
   "1.25s"
   "5 milliseconds, 15mins, 6 hrs"
   "0.25 days"
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">timeString</span>:String</code> &mdash; - a string representing some ammount of time.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; An int containing the time in milliseconds
   </td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="DAYS_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DAYS_SEARCH</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const DAYS_SEARCH:RegExp</code>
</div>
<a name="DAYS_VALUE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DAYS_VALUE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const DAYS_VALUE:Number = 86400000</code>
</div>
<a name="FRAMES_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">FRAMES_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const FRAMES_SEARCH:RegExp</code>
</div>
<a name="HOURS_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">HOURS_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const HOURS_SEARCH:RegExp</code>
</div>
<a name="HOURS_VALUE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">HOURS_VALUE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const HOURS_VALUE:Number = 3600000</code>
</div>
<a name="LETTER_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LETTER_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const LETTER_SEARCH:RegExp</code>
</div>
<a name="MILLISECONDS_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MILLISECONDS_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const MILLISECONDS_SEARCH:RegExp</code>
</div>
<a name="MILLISECONDS_VALUE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MILLISECONDS_VALUE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const MILLISECONDS_VALUE:Number = 1</code>
</div>
<a name="MINUTES_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MINUTES_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const MINUTES_SEARCH:RegExp</code>
</div>
<a name="MINUTES_VALUE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MINUTES_VALUE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const MINUTES_VALUE:Number = 60000</code>
</div>
<a name="NUMBER_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">NUMBER_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const NUMBER_SEARCH:RegExp</code>
</div>
<a name="NUMBER_UNIT_PAIR_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">NUMBER_UNIT_PAIR_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const NUMBER_UNIT_PAIR_SEARCH:RegExp</code>
</div>
<a name="SECONDS_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">SECONDS_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const SECONDS_SEARCH:RegExp</code>
</div>
<a name="SECONDS_VALUE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">SECONDS_VALUE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const SECONDS_VALUE:Number = 1000</code>
</div>
<a name="TIMECODE_DIGIT_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TIMECODE_DIGIT_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const TIMECODE_DIGIT_SEARCH:RegExp</code>
</div>
<a name="TIMECODE_FORMAT_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TIMECODE_FORMAT_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const TIMECODE_FORMAT_SEARCH:RegExp</code>
</div>
<a name="TIMECODE_FRAME_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TIMECODE_FRAME_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const TIMECODE_FRAME_SEARCH:RegExp</code>
</div>
<a name="TIMECODE_SEGMENT_SEARCH"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TIMECODE_SEGMENT_SEARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected static const TIMECODE_SEGMENT_SEARCH:RegExp</code>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
